using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Builder
{
   public partial class ApproxTrainingPct : Form
   {
      public ApproxTrainingPct(Dictionary<int,int> ApproxTrainingPcts)
      {
         InitializeComponent();

         foreach (KeyValuePair<int, int> kvp in ApproxTrainingPcts)
         {
            DataGridViewRow dgvr = new DataGridViewRow();
            dgvr.CreateCells(dtrgdvwApproxTrainingPct);
            dgvr.Cells[0].Value = kvp.Key;
            dgvr.Cells[1].Value = kvp.Value;
            dgvr.Cells[2].Value = Math.Round(kvp.Value * 1.25, 0);
            dtrgdvwApproxTrainingPct.Rows.Add(dgvr);
         }
      }
   }
}